/**
*@author       wuwg
*@createTime   2018/03/20
*@updateTime   2018/03/20
*@description
*@rule
 */
@import '../../../config/config.less';

//命名空间
@css-prefix-title: ~"@{css-prefix}title";
.@{css-prefix-title}{
  position: relative;
  margin: 0 0 1em 0;
  font-weight: 600;
  font-size: 100%
}

* {
  +.@{css-prefix-title} {
    margin-top: 1em
  }
}
// 当 @index =0 那么就隐藏
.title(@level) when (@level > 0) {
  .countStyle(@level) {
    .@{css-prefix-title}-@{level} {
      font-size:  (4-@level)*6+18px
    }
  }
  .countStyle(@level) when(@level=5){
    .@{css-prefix-title}-@{level} {
      font-size: 14px
    }
  }
  .countStyle (@level)  when(@level=6){
    .@{css-prefix-title}-@{level} {
        font-size: 12px
    }
  }
  //生成样式
  .countStyle(@level);
  // 循环
  .title((@level - 1));
}
// 标题
.title(6);




